//
//  ZMRegisterViewController.m
//  基本框架
//
//  Created by runone02 on 2018/6/29.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "ZMRegisterViewController.h"
#import "RegisterView.h"
@interface ZMRegisterViewController ()

@property (nonatomic, strong) RegisterView * registerView;
@end

@implementation ZMRegisterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupMainView];
}


- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.hidden = NO;
}

- (void) viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
     self.navigationController.navigationBar.hidden = YES;
}

- (void) setupMainView{
    self.registerView = [[RegisterView alloc]initWithFrame:CGRectZero];
    [self.view addSubview:self.registerView];
    
    [self.registerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(0);
        make.top.mas_equalTo(0);
    }];
    
    [self.registerView.superview layoutIfNeeded];
    [self.registerView setupUI];
}


@end
